package index

import "lphoto/models"

type IndexController struct {
	BaseController
}

func (c *IndexController) Index() {
	c.Data["Website"] = "beego.me"
	c.Data["Email"] = "astaxie@gmail.com"
	c.TplName = "index/index.tpl"
}

func (c *IndexController) GetProduct() {
	data := models.MediaInfoGetAll()
	c.responseSuccess("获取数据成功！",data)
}